package com.nix.web.databases.pojo.user;

import com.nix.web.databases.pojo.BasePojo;

import java.util.List;

/**
 * @author zhangpei
 * @Email zhangpe0312@qq.com
 * @day 2017/11/2 12:48
 * @Use 每个角色对应的权限表
 */
public class Permissions extends BasePojo {
   private String permission;
   private String description;
   private Integer available;
   /**
    * 资源和权限多对多关系
    */
   private List<Resources> resources;
   /**
    * 权限和角色多对多关系
    */
    private List<Role> roles;

   public String getPermission() {
      return permission;
   }

   public void setPermission(String permission) {
      this.permission = permission;
   }

   public String getDescription() {
      return description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   public Integer getAvailable() {
      return available;
   }

   public void setAvailable(Integer available) {
      this.available = available;
   }

   public List<Resources> getResources() {
      return resources;
   }

   public void setResources(List<Resources> resources) {
      this.resources = resources;
   }

   public List<Role> getRoles() {
      return roles;
   }

   public void setRoles(List<Role> roles) {
      this.roles = roles;
   }
}
